package com.example.oct.feign.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

@Data
@Accessors(chain = true)
public class UserSourceType {

    @Schema(title = "来源类型，1-手机号，2-邮箱")
    @NotNull
    @Range(min = 1, max = 2)
    private Integer source;

    @Schema(title = "登录/注册的id，手机号或邮箱")
    @NotBlank
    private String id;

}
